package com.chen.nongansampling.viewModel;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import com.chen.nongansampling.bean.sample.insert.SamplingInformation;

public class SamplingViewModel extends ViewModel {
    private MutableLiveData<SamplingInformation> users=new MutableLiveData();
    private String SamplingPkId;

    public LiveData<SamplingInformation> getData() {
        if (users == null) {
            users = new MutableLiveData<>(); }
        return users;
    }


    public void setData(SamplingInformation s) {
        users.setValue(s);
    }

    public String getSamplingPkId() {
        return SamplingPkId;
    }

    public void setSamplingPkId(String samplingPkId) {
        SamplingPkId = samplingPkId;
    }
}
